package com.jwt.token.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.Map;

public class SessionUtil {
	public static final ThreadLocal<HttpSession> localSession = new ThreadLocal<HttpSession>();
	public static final ThreadLocal<HttpServletResponse> localResponse = new ThreadLocal<HttpServletResponse>();
	public static final ThreadLocal<HttpServletRequest> localRequest = new ThreadLocal<HttpServletRequest>();
	public static final ThreadLocal<String> str = new ThreadLocal<String>();
	public static  ThreadLocal<Map<String,String>> map = new ThreadLocal<Map<String,String>>(){
		public Map<String, String> get() {
			Map<String, String> result = super.get();
			//super.remove();
			return result;
		}
	};

}
